import request from './request.js'

export async function getMovies (page = 1, limit = 10) {
  let resp = await request.get('/api/movie', {
    page,
    limit
  })
  return resp.data
}